import { Module } from '@nestjs/common';
import { CategoryService } from './category.service';
import { CategoryController } from './category.controller';
import { Category } from 'src/entities/category.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Product } from 'src/entities/product.entity';
import { ProductService } from 'src/product/product.service';
import { ProductOption } from 'src/entities/product-option.entity';
import { ProductController } from 'src/product/product.controller';
import { ProductOptionsController } from 'src/product-options/product-options.controller';
import { ProductOptionsService } from 'src/product-options/product-options.service';

@Module({
  imports: [TypeOrmModule.forFeature([Category, Product, ProductOption])],
  controllers: [CategoryController, ProductController, ProductOptionsController],
  providers: [CategoryService, ProductService, ProductOptionsService],
  exports: [CategoryService]
})
export class CategoryModule {}
